package com.cskaoyan.bean.goods.wx;

import com.cskaoyan.bean.po.MarketCategory;
import lombok.Data;

import java.util.List;

/**
 * ClassName: WxGoodsListData
 * Description:
 * date: 2022/6/8 14:25
 *
 * @author bruce
 * @since JDK 8
 */
@Data
public class WxGoodsListData {
    /**
     * total : 38
     * pages : 4
     * limit : 10
     * page : 1
     * list : [{"id":1181216,"name":"12121212312","brief":"123123","picUrl":"http://182.92.235.201:8083/wx/storage/fetch/l1elz55vdl6nsy4bmasi.jpg","isNew":true,"isHot":false,"counterPrice":123,"retailPrice":123},{"id":1057036,"name":"日式纯色水洗亚麻抱枕","brief":"水洗亚麻，透气亲肤","picUrl":"http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png","isNew":false,"isHot":false,"counterPrice":99,"retailPrice":79},{"id":1055012,"name":"300根全棉羽丝绒抱枕芯","brief":"仪征3D填充，充实的满足感","picUrl":"http://yanxuan.nosdn.127.net/3d437c8d68e2ec3f3dd61001bf98f16e.png","isNew":false,"isHot":false,"counterPrice":59,"retailPrice":39},{"id":1055016,"name":"日式纯棉针织条纹抱枕","brief":"亲肤舒适，宛如妈妈的怀抱","picUrl":"http://yanxuan.nosdn.127.net/23e0203f1512f33e605f61c28fa03d2d.png","isNew":false,"isHot":false,"counterPrice":79,"retailPrice":59},{"id":1130037,"name":"帆布丝羽绒多用坐垫","brief":"柔软蓬松，透气防螨。","picUrl":"http://yanxuan.nosdn.127.net/19ecd7c6f6f31219cf75117238d95139.png","isNew":false,"isHot":false,"counterPrice":59,"retailPrice":39},{"id":1130041,"name":"皮毛一体多用长毛坐垫","brief":"澳洲羊毛的细腻触感","picUrl":"http://yanxuan.nosdn.127.net/442b9d99c0e7f39efd7967e0e5987374.png","isNew":false,"isHot":false,"counterPrice":129,"retailPrice":109},{"id":1130042,"name":"皮毛一体多用单张长毛皮垫","brief":"盖毯、沙发垫、椅垫、地垫","picUrl":"http://yanxuan.nosdn.127.net/dc9d09334eb201fe9408ed604e549941.png","isNew":false,"isHot":false,"counterPrice":259,"retailPrice":239}]
     */
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<ListBean> list;
    private List<MarketCategory> filterCategoryList;

    public static WxGoodsListData data(long total, Integer pages, Integer limit, Integer page, List<ListBean> list, List<MarketCategory> filterCategoryList) {
        WxGoodsListData wxGoodsListData = new WxGoodsListData();
        wxGoodsListData.setTotal((int) total);
        wxGoodsListData.setPages(pages);
        wxGoodsListData.setPage(page);
        wxGoodsListData.setLimit(limit);
        wxGoodsListData.setList(list);
        wxGoodsListData.setFilterCategoryList(filterCategoryList);
        return wxGoodsListData;
    }
}
